package com.kaka.bus.adapter;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.kaka.bus.R;
import com.kaka.bus.bean.VipBean;

import java.util.List;


/**
 * Created by zhangqi on 2017/11/15.
 */

public class VipAdapter extends BaseQuickAdapter<VipBean, BaseViewHolder> {

    public VipAdapter(int layoutResId, @Nullable List<VipBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, VipBean item) {

        if(item.isCheck()){
            helper.setBackgroundRes(R.id.item_vip_bg,R.drawable.vip_top_bg_check);
        }else{
            helper.setBackgroundRes(R.id.item_vip_bg,R.drawable.vip_top_bg_uncheck);
        }

    }

}
